package com.ruoyi.order.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠团购对象 cf_group_buying
 * 
 * @author xwh
 * @date 2024-06-04
 */
public class CfGroupBuying extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String name;

    /** 门店名 */
    @Excel(name = "门店名")
    private Long cfShopId;

    /** 图片 */
    @Excel(name = "图片")
    private String photo;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal current;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal original;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 活动截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 咨询电话 */
    @Excel(name = "咨询电话")
    private String phone;

    /** 注意事项 */
    @Excel(name = "注意事项")
    private String notice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCfShopId(Long cfShopId) 
    {
        this.cfShopId = cfShopId;
    }

    public Long getCfShopId() 
    {
        return cfShopId;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCurrent(BigDecimal current) 
    {
        this.current = current;
    }

    public BigDecimal getCurrent() 
    {
        return current;
    }
    public void setOriginal(BigDecimal original) 
    {
        this.original = original;
    }

    public BigDecimal getOriginal() 
    {
        return original;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setNotice(String notice) 
    {
        this.notice = notice;
    }

    public String getNotice() 
    {
        return notice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cfShopId", getCfShopId())
            .append("photo", getPhoto())
            .append("createTime", getCreateTime())
            .append("content", getContent())
            .append("current", getCurrent())
            .append("original", getOriginal())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("phone", getPhone())
            .append("notice", getNotice())
            .toString();
    }
}
